'''
author: leiwenhui
version：v1
title: ⼀个列表lst = [1, 4, 9, 16, 2, 5, 10, 15]，⽣成⼀个新列表，要求新列表元素是lst相邻2项的和
'''

lst1 = [1, 4, 9, 16, 2, 5, 10, 15]
lst2 = []

for i in range(len(lst1)-1):
    lst2.append(lst1[i]+lst1[i+1])
print(lst2)


# 完成的不错
